from fastapi import APIRouter, Request

app6 = APIRouter()


@app6.post("/items")
async def items(request: Request):
    return {
        "url": request.url,
        "id": request.client.host,
        "user-agent": request.headers["user-agent"],
        "cookie": request.cookies
    }
